-- GENERATED SPELL FOR [Jlarborn the Strategist] --


function spell0_24215(pUnit, Event) --@Arcing Smash,n/a--
pUnit:FullCastSpellOnTarget(8374,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24215', 571, 1)
end

function spell1_24215(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(38233,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24215', 8342, 1)
end

function spell2_24215(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(12169,pUnit)
pUnit:RegisterEvent('Sorts_24215', 5337, 1)
end

function spell3_24215(pUnit, Event) --@Shield Charge,n/a--
pUnit:FullCastSpellOnTarget(19131,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24215', 613, 1)
end

function Sorts_24215(pUnit, Event)
local choix_sorts_24215 = math.random(0, 3)
if choix_sorts_24215 == 0 then
pUnit:RegisterEvent('spell0_24215', 1, 1)
end
if choix_sorts_24215 == 1 then
pUnit:RegisterEvent('spell1_24215', 1, 1)
end
if choix_sorts_24215 == 2 then
pUnit:RegisterEvent('spell2_24215', 1, 1)
end
if choix_sorts_24215 == 3 then
pUnit:RegisterEvent('spell3_24215', 1, 1)
end
end

function mob24215_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24215', math.random(1500, 3000), 1)
end

function mob24215_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24215_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24215_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24215, 1, 'mob24215_Action')
RegisterUnitEvent(24215, 2, 'mob24215_Leave')
RegisterUnitEvent(24215, 3, 'mob24215_Kill')
RegisterUnitEvent(24215, 4, 'mob24215_Die')
